some_list = [1,2,3]
for counter, value in enumerate(some_list):
    print(counter, value)

print("接受可选参数")
my_list = ['apple', 'banana', 'grapes', 'pear']
for c, value in enumerate(my_list, 1):
    print(c, value)

print("创建包含索引的元组列表")
counter_list = list(enumerate(my_list, 1))
print(counter_list[0][1])
